package com.ruoyi.project.flow.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.flow.mapper.FlowFeedbackMapper;
import com.ruoyi.project.flow.domain.FlowFeedback;
import com.ruoyi.project.flow.service.IFlowFeedbackService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 反馈Service业务层处理
 *
 * @author zyc
 * @date 2025-05-12
 */
@Service
public class FlowFeedbackServiceImpl extends ServiceImpl<FlowFeedbackMapper, FlowFeedback> implements IFlowFeedbackService {
    @Autowired
    private FlowFeedbackMapper flowFeedbackMapper;


    /**
     * 查询反馈
     *
     * @param ID 反馈主键
     * @return 反馈
     */
    @Override
    public FlowFeedback selectFlowFeedbackByID(Long ID) {
        return flowFeedbackMapper.selectFlowFeedbackByID(ID);
    }

    /**
     * 查询反馈列表
     *
     * @param flowFeedback 反馈
     * @return 反馈
     */
    @Override
    public List<FlowFeedback> selectFlowFeedbackList(FlowFeedback flowFeedback) {
        return flowFeedbackMapper.selectFlowFeedbackList(flowFeedback);
    }

    /**
     * 新增反馈
     *
     * @param flowFeedback 反馈
     * @return 结果
     */
    @Override
    public int insertFlowFeedback(FlowFeedback flowFeedback) {
            return flowFeedbackMapper.insertFlowFeedback(flowFeedback);
    }

    /**
     * 修改反馈
     *
     * @param flowFeedback 反馈
     * @return 结果
     */
    @Override
    public int updateFlowFeedback(FlowFeedback flowFeedback) {
        return flowFeedbackMapper.updateFlowFeedback(flowFeedback);
    }

    /**
     * 批量删除反馈
     *
     * @param IDs 需要删除的反馈主键
     * @return 结果
     */
    @Override
    public int deleteFlowFeedbackByIDs(Long[] IDs) {
        return flowFeedbackMapper.deleteFlowFeedbackByIDs(IDs);
    }

    /**
     * 删除反馈信息
     *
     * @param ID 反馈主键
     * @return 结果
     */
    @Override
    public int deleteFlowFeedbackByID(Long ID) {
        return flowFeedbackMapper.deleteFlowFeedbackByID(ID);
    }
}
